/* 聊天窗口 */
.chart-box {
    width: 800px;
    height: 700px;
    border: 1px solid #000;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background-color: cornflowerblue;
    display: flex;
}
/* 左侧成员列表 */
.user-list {
    width: 300px;
    height: 100px;
    background-color: darkblue;
    color: #fff;
    padding-left: 50px;
    text-align: left;
}
.user {
    border-bottom: 2px solid #000;
    height: 100px;
    line-height: 100px;
}
.user img {
    width: 40px;
    height: 40px;
    vertical-align: middle;
}
.other-user li {
    margin: 10px 0;
}
.other-user img {
    width: 40px;
    height: 40px;
    vertical-align: middle;
    margin-right: 20px;
}
.user-list .other-user {
    height: 100%;
}
/* 右侧聊天窗口 */
.chart-content {
    width: 100%;
    height: 100%;
    background-color: floralwhite;
}
.chart-num {
    width: 100%;
    height: 40px;
    text-align: center;
    line-height: 40px;
    border-bottom: 2px solid #ddd;
    background-color: #ddd;
}
.bd {
    width: 100%;
    height: 500px;
    border-bottom: 2px solid #ddd;
    overflow-y: scroll;
}
.bd p {
    text-align: center;
    margin: 10px 0;
}
.bd p span {
    text-align: center;
    padding: 0 10px;
    padding-bottom: 10px;
}
.send-message {
    width: 100%;
    height: 160px;
}

.bd .new-user, .bd .remove-user {
    margin: auto;
    color: #000;
    background-color: darkgray;
}
.message-div {
    height: 100px;
    max-width: 760px;
}

/* 聊天内容 */
.message-box .my-msg-box {
    display: flex;
    flex-direction: row-reverse;
    padding: 10px;
}
.message-box .my-msg-box .my-avatar {
    width: 40px;
    height: 40px;
    vertical-align: middle;
}

.message-box .other-msg-box {
    display: flex;
    padding: 10px;
    /* flex-direction: row-reverse */
}
.message-box .other-msg-box .other-avatar {
    width: 40px;
    height: 40px;
    vertical-align: middle;
    margin-right: 5px;
}
.other-msg p {
    margin: 2px 0;
}
.other-msg-p, .my-msg {
    padding: 10px;
    max-width: 200px;
    background-color: rgba(118, 180, 10, 0.342);
    overflow-wrap: normal;
}
.my-avatar {
    margin-left: 5px;
}
.my-msg {
    background-color: #fff;
}